import uniRequest from "./http";
// import data from "../data/data";
import qs from "qs"
class Apis {
   get(url, params) { // get
   	return uniRequest.request({
   		method: 'get',
   		baseURL: uniRequest.defaults.baseURL,
   		url: url + '?' + Math.random() * 100000,
   		body:params, // get 请求时带的参数
   		timeout: 30000,
   		headers: {
   			'X-Requested-With': 'XMLHttpRequest'
   		}
       })
   }
}
export default new Apis();